.class Lcn/domob/android/ads/C$2;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcn/domob/android/ads/C;->a(Lcn/domob/android/ads/l;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcn/domob/android/ads/l;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Lcn/domob/android/ads/C;


# direct methods
.method constructor <init>(Lcn/domob/android/ads/C;Lcn/domob/android/ads/l;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcn/domob/android/ads/C$2;->c:Lcn/domob/android/ads/C;

    iput-object p2, p0, Lcn/domob/android/ads/C$2;->a:Lcn/domob/android/ads/l;

    iput-object p3, p0, Lcn/domob/android/ads/C$2;->b:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    iget-object v0, p0, Lcn/domob/android/ads/C$2;->a:Lcn/domob/android/ads/l;

    invoke-virtual {v0}, Lcn/domob/android/ads/l;->d()[B

    move-result-object v0

    iget-object v1, p0, Lcn/domob/android/ads/C$2;->c:Lcn/domob/android/ads/C;

    iget-object v2, p0, Lcn/domob/android/ads/C$2;->a:Lcn/domob/android/ads/l;

    invoke-virtual {v2}, Lcn/domob/android/ads/l;->a()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v0, v2}, Lcn/domob/android/ads/C;->a(Lcn/domob/android/ads/C;[BLjava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcn/domob/android/ads/C;->b()Lcn/domob/android/ads/H;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Image saved:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcn/domob/android/ads/H;->b(Ljava/lang/String;)V

    :try_start_0
    iget-object v1, p0, Lcn/domob/android/ads/C$2;->c:Lcn/domob/android/ads/C;

    invoke-virtual {v1}, Lcn/domob/android/ads/C;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcn/domob/android/ads/c;->a(Landroid/content/Context;)Lcn/domob/android/ads/c;

    move-result-object v1

    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    const-string v3, "location"

    invoke-virtual {v2, v3, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v3, "domob_splash_img_cache_res"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "alias= \""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcn/domob/android/ads/C$2;->b:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v1, v3, v2, v4, v5}, Lcn/domob/android/ads/c;->a(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget-object v1, p0, Lcn/domob/android/ads/C$2;->c:Lcn/domob/android/ads/C;

    const-string v2, "domobjs.assetReady(\'%s\', \'%s\')"

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    iget-object v5, p0, Lcn/domob/android/ads/C$2;->b:Ljava/lang/String;

    aput-object v5, v3, v4

    const/4 v4, 0x1

    aput-object v0, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/domob/android/ads/C;->a(Ljava/lang/String;)V

    :goto_1
    return-void

    :catch_0
    move-exception v1

    invoke-static {}, Lcn/domob/android/ads/C;->b()Lcn/domob/android/ads/H;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/Throwable;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lcn/domob/android/ads/C;->b()Lcn/domob/android/ads/H;

    move-result-object v0

    const-string v1, "Error in saving image."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->e(Ljava/lang/String;)V

    goto :goto_1
.end method
